<template>
    <div class="tagsDone-wrapper">
        <div class="tags-list" v-for="list in selectFieldArr" :key="list.value">
            <span>{{ list.label }}</span>:
            <span>{{ list.value }}</span>
            <i class="el-icon-circle-close" v-if="list.value" @click="delField(list)"></i>
        </div>
    </div>
</template>
<script>
export default {
    props: {
        selectFieldArr: {
            type: Array,
            require: true
        }
    },
    components: {

    },
    data () {
        return {
        }
    },
    computed: {

    },
    watch: {

    },
    created () {

    },
    mounted () {

    },
    methods: {
        delField(obj){
            this.$emit('delField',obj)
        }

    },
    activated () { },
}
</script>

<style lang='scss' scoped>
@import '../varConfig.scss';

.tagsDone-wrapper {
    display: flex;
    flex-direction: row;

}

.tags-list {
    background-color: #EEF0F5;
    color: #212224;
    margin: 2px 3px;
    padding: 0px 5px;
    padding-right: 30px;
    line-height: 30px;
    position: relative;
    display: flex;
    font-size: 12PX;
    align-items: center;
    // & span:hover {
    //     color: $hoverFontColor;
    // }
    i {
        font-size: 18px;
        margin-left: 15px;
        position: absolute;
        right: 4px;
        top: 8px;
        &:hover{
            color: $hoverFontColor;
            cursor: pointer;
        }
    }
}
</style>